package com.example.administrator.libraryclub.fragment;

import android.app.Fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import android.widget.Toast;

import com.example.administrator.libraryclub.R;

/**
 * Created by Administrator on 2015/10/21.
 */
public class SecondFragment extends Fragment{


    private TextView desc;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.second_fragment_layout, null, true);
        initViews(view);
        return view;
    }

    private void initViews(View view) {
        desc = (TextView) view.findViewById(R.id.tv_desc);
    }

    public void setStr(String str) {
        this.str = str;
        desc.setText(str);
    }

    private String str;


}
